package br.com.assemble.hermeserp.model.pojos.comercial;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import br.com.assemble.hermeserp.ejb.annotation.DaoClass;
import br.com.assemble.hermeserp.model.BasePojo;
import br.com.assemble.hermeserp.model.pojos.pessoas.PessoaJuridica;


/**
 * The persistent class for the QUALIFICACOES database table.
 * 
 */
@Entity
@Table(name="QUALIFICACOES")
@DaoClass(value="QualificacaoDao", pu="hermes-pu")
public class Qualificacao extends BasePojo implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="QUA_IDENTIFY", unique=true, nullable=false)
	private BigInteger quaIdentify;

	@Column(name="QUA_NOME", nullable=false, length=100)
	private String quaNome;

	@Column(name="QUA_RESUMO_ATUACAO", length=500)
	private String quaResumoAtuacao;

	//bi-directional many-to-one association to PessoaJuridica
	@OneToMany(mappedBy="qualificacao")
	private List<PessoaJuridica> pessoaJuridicaCollection;

    public Qualificacao() {
    }

	public BigInteger getQuaIdentify() {
		return this.quaIdentify;
	}

	public void setQuaIdentify(BigInteger quaIdentify) {
		this.quaIdentify = quaIdentify;
	}

	public String getQuaNome() {
		return this.quaNome;
	}

	public void setQuaNome(String quaNome) {
		this.quaNome = quaNome;
	}

	public String getQuaResumoAtuacao() {
		return this.quaResumoAtuacao;
	}

	public void setQuaResumoAtuacao(String quaResumoAtuacao) {
		this.quaResumoAtuacao = quaResumoAtuacao;
	}

	public List<PessoaJuridica> getPessoaJuridicaCollection() {
		return this.pessoaJuridicaCollection;
	}

	public void setPessoaJuridicaCollection(List<PessoaJuridica> pessoaJuridicaCollection) {
		this.pessoaJuridicaCollection = pessoaJuridicaCollection;
	}
	
}